{{- partial "intro" . }}
{{ $pages := .Pages }}
{{ if .IsHome }}
  {{ $pages = .Site.RegularPages }}
{{ end }}
{{ with .Site.Params.blogDir }}
  {{ $pages = where $.Site.RegularPages "Section" "blog" }}
{{ end }}
<ul class='posts wrap' id = 'posts'>
  {{- range (.Paginate $pages).Pages }}
    {{ partial "excerpt" . }}
  {{- end }}
</ul>
{{- template "_internal/pagination.html" . }}
